home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5520 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mindlink.bc.ca!a10599
  2. From: Dave_Thomas@mindlink.bc.ca (Dave Thomas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Removing Processes
  5. Date: Fri, 15 Mar 96 18:50:29 -0800
  6. Organization: MIND LINK! - British Columbia, Canada
  7. Distribution: world
  8. Message-ID: <84215-826944629@mindlink.bc.ca>
  9. NNTP-Posting-Host: mindlink.net
  10.  
  11. Hi!  I'm writing a program which spawns a sub-process to do another task
  12. while the main program handles input.  The problem I'm finding is that the
  13. sub-process doesn't exit reliably.  Sometimes it appears to exit, and
  14. sometimes not.  Currently, I am allowing the subprocess to run to the end,
  15. when (I assume) it does an "RTS" and returns to the OS for removal. Should
  16. I be using "RemTask()" to remove the sub-process?  And, if so, should it be
  17. called from the sub-process, or from the main program?  BTW, the
  18. sub-process is a procedure in the program, and uses some global variables
  19. and string constants.
  20.  
  21. Next question: I am using a process because I am writing a NNTP news reader
  22. program, and I want the sub-process to do the communication across the 'net
  23. (using AmiTCP).  It's not clear to me that a task would be sufficient to do
  24. this.  Would it be?
  25.  
  26. Final question:  I'm using SASC 6.55 and find that when I write a smakefile
  27. and use smake to compile, it trashes some of my source files.  I've stopped
  28. using smake, but it's a pain when I need to recompile everything.  I've
  29. also had this problem with older versions.  Has anyone else noticed this?
  30.  
  31. Thanks in advance!
  32.  
  33. Dave
  34.